package cn.school.dao;

import cn.school.entity.Subject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubjectMapper {
    public List<Subject> findALL();
    public int add(Subject s);
    public int modify(Subject s);
    //根据id查找单个subject信息
    public Subject get(long id);
    public int del(long id);

    public int findTotal();

    //
    public List<Subject> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("subjectname") String subjectname);

    public int searchTotal(@Param("subjectname") String subjectname);
}
